package model;

import basics.ConversaoDeBases;

abstract public class Instrucao {

	private String op;
	private Long endereco;

	abstract public String getInstrucao();

	protected String getOp() {
		return op;
	}

	protected void setOp(String op) {
		this.op = op;
	}

	protected Long getEndereco() {
		return endereco;
	}
	
	protected void setEndereco(Long endereco) {
		this.endereco = endereco;
	}
	
	protected String getOpInHex() {
		return ConversaoDeBases.binToHex(op);
	}
	
	protected String getEnderecoInHex() {
		return ConversaoDeBases.binToHex(ConversaoDeBases.DecToBin((long) endereco));
	}

	protected String getEnderecoInBin() {
		return ConversaoDeBases.DecToBin(endereco);
	}


}
